package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.base.pojo.node.LayuiTreeNode;
import cn.stylefeng.guns.base.pojo.node.ZTreeNode;
import cn.stylefeng.guns.sys.modular.system.entity.ZxKemu;
import cn.stylefeng.guns.sys.modular.system.model.params.ZxKemuParam;
import cn.stylefeng.guns.sys.modular.system.model.params.ZxTzqkViewParam;
import cn.stylefeng.guns.sys.modular.system.model.result.ZxKemuResult;
import cn.stylefeng.guns.sys.modular.system.model.result.ZxTzqkViewResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 装修科目表 Mapper 接口
 * </p>
 *
 * @author gyz
 * @since 2020-11-02
 */
public interface ZxKemuMapper extends BaseMapper<ZxKemu> {

    /**
     * 获取列表
     *
     * @author gyz
     * @Date 2020-11-02
     */
    List<ZxKemuResult> customList(@Param("paramCondition") ZxKemuParam paramCondition);

    /**
     * 获取map列表
     *
     * @author gyz
     * @Date 2020-11-02
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ZxKemuParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author gyz
     * @Date 2020-11-02
     */
    Page<ZxKemuResult> customPageList(@Param("page") Page page, @Param("paramCondition") ZxKemuParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author gyz
     * @Date 2020-11-02
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ZxKemuParam paramCondition);

    List<LayuiTreeNode> layuiTree();

    List<LayuiTreeNode> layuiTreeByPinpai(@Param("pinpai") Long pinpai);

    List<ZTreeNode> tree();
    List<ZTreeNode> treeByPinpai(@Param("pinpai") Long pinpai);

    ZxKemuResult findBySpec(@Param("paramCondition") ZxKemuParam param);

    List<ZxTzqkViewResult> selectAllYijiKemu(@Param("level") String level);

    List<ZxTzqkViewResult> selectAllErjiKemu(@Param("level") String level);

    List<ZxTzqkViewResult> selectAllSanjiKemu(@Param("level") String level);

    ZxTzqkViewResult selectKemuByParam(@Param("param") ZxTzqkViewParam param);

    ZxTzqkViewResult selectKemu3ByParam(@Param("param") ZxTzqkViewParam param);

    List<ZxKemuResult> findListBySpec(@Param("paramCondition") ZxKemuParam param);


    List<ZxTzqkViewResult> selectAllYijiKemuDgd(@Param("level") String level);

    List<ZxTzqkViewResult> selectAllErjiKemuDgd(@Param("level") String level);
}
